﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ACGN.Core.Models
{
    public class Carousel
    {
        [Key]
        public int CId { get; set; }
        [Display(Name = "轮播标题")]
        [Required(ErrorMessage = "标题不能为空")]
        public string Tilte { get; set; }
        [Display(Name = "跳转地址")]
        [Required(ErrorMessage = "跳转地址不能为空")]
        public string ToUrl { get; set; }
        [Display(Name = "图片地址")]
        [Required(ErrorMessage = "图片地址不能为空")]
        public string ImgUrl { get; set; }
    }
}
